package com.xinyu.vo;

import lombok.Data;

@Data
public class PublicRequest {

    private String keyword;//关键字
    private Integer siteId = 1;//站点id
    private String author;//user-realname
    private String startTime;
    private String endTime;
    private Integer top = 1;//0 不置顶 1 置顶
    private Integer page = 1;//页码
    private Integer rows = 5;//每页条数
    private String sortWay = "DESC";//排序方式
    private String sortColumn;//排序字段
    private Integer offset;
    private Integer loginUserId;//当前登录的用户id
    private Integer isDelete = 0;

    public Integer getOffset() {
        return (page - 1) * rows;
    }
}
